package com.xj.studywebflux.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
//@EqualsAndHashCode(callSuper=false)
public class ResourceNotFoundException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private Integer code=500;
    public ResourceNotFoundException(Integer code ,String msg) {
        super(msg);
        this.code = code;
    }

    public ResourceNotFoundException(String msg) {
        super(msg);
    }
    public ResourceNotFoundException() {
        super();
    }
}
